package com.spongebob.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.spongebob.Vo.Shiro;
import com.spongebob.pojo.RoleManage;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 角色管理 Mapper 接口
 * </p>
 *
 * @author tutu
 * @since 2021-03-16
 */
public interface RoleManageMapper extends BaseMapper<RoleManage> {

    @Select("select power,roleName from role_manage,customer_service where serviceRole=roleName and email =#{email}")
    public Shiro getRole(String email) ;
}
